<notempty name="tree">
<volist name="tree" id="list" >
	<dl class="cate-item">
		<dt class="cf">
			<form action="{:U('edit')}" method="post">
				<div class="opt-btn cf">
					<a title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get"><neq name="list['status']" value="0"><i class="icon-lock"></i> 禁用</neq><neq name="list['status']" value="1"><i class="icon-unlock"></i> 启用</neq></a>　<a title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}"><i class="icon-pencil"></i> 编辑</a>　<a title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get"><i class="icon-remove"></i> 删除</a>　<a title="移动" href="{:U('operate?type=move&from='.$list['id'].'&level='.$list['level'])}"><i class="icon-external-link"></i> 移动</a>　
					<!-- <a title="合并" href="{:U('operate?type=merge&from='.$list['id'])}"><i class="icon-refresh"></i> 合并</a> -->
				</div>
				<div class="fold"><i></i></div>
				<div class="order"><input type="text" name="sort" class="text input-mini" value="{$list.sort}"></div>
				<div class="order">{$list['allow_publish']?'是':'否'}</div>
				<div class="name">
					<span class="tab-sign"></span>
					<input type="hidden" name="id" value="{$list.id}">
					<input type="text" name="title" class="text" value="{$list.title}">
					<if condition="$list.level lt 3">
						<a class="add-sub-cate" title="添加子分类" href="{:U('add?pid='.$list['id'])}"><i class="icons-add"></i></a>
					</if>
					<span class="help-inline msg"></span>
				</div>
			</form>
		</dt>
		<notempty name="list['_']">
			<dd>
				{:R('Category/tree', array($list['_']))}
			</dd>
		</notempty>
	</dl>
</volist>
<else/>
	<dl class="cate-item">
		<dt class="cf">
			<div class="empty-div"> Oh~亲爱滴,暂时还没有内容!</div>
		</dt>
	</dl>
</notempty>